import { ref } from "vue";
import type Typings from "@/typings";

const origins = ref<Typings.Local.CreateForm.formJsons[]>([
  {
    el: "input",
    span: 12,
    prop: "input",
    label: "输入框",
    defaultValue: "",
    placeholder: "请输入",
    rules: [],
  },
  {
    el: "textarea",
    span: 24,
    prop: "textarea",
    label: "多行文本框",
    placeholder: "请输入",
    defaultValue: "",
    rules: [],
  },
  {
    el: "select",
    span: 12,
    prop: "select",
    label: "选择框",
    defaultValue: "",
    placeholder: "请选择",
    options: [
      { name: "选项一", code: "1" },
      { name: "选项二", code: "2" },
    ],
    rules: [],
  },
  {
    el: "radio",
    span: 12,
    prop: "radio",
    label: "单选框",
    defaultValue: "",
    options: [
      { name: "选项一", code: "1" },
      { name: "选项二", code: "2" },
    ],
    rules: [],
  },
  {
    el: "checkbox",
    span: 12,
    prop: "checkbox",
    label: "多选框",
    defaultValue: [],
    options: [
      { name: "选项一", code: "1" },
      { name: "选项二", code: "2" },
    ],
    rules: [],
  },
]);

export default origins;
